package studio.raptor.dispatcher.server.filter;

import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
import studio.raptor.dispatcher.common.constant.TopicConst;
import studio.raptor.dispatcher.server.dao.DispatcherConfigDAO;

/**
 * 普通业务订阅关系
 *
 * @author jack
 * @author liuyong
 * @since 1.0
 */
@Component
@Profile("ord_biz")
public class OrdBizSubscription extends Subscription {

  private static final Logger log = LoggerFactory.getLogger(Subscription.class);


  @Autowired
  DispatcherConfigDAO dispatcherConfigDAO;

  @PostConstruct
  public void init() {
    log.info("load ord biz subscription config");

    //加载普通业务配置逻辑
    loadSubConfig(TopicConst.ORD_TOPIC, dispatcherConfigDAO);

  }

}